from django.contrib import admin
from student.models import Student
# Register your models here.

@admin.register(Student)
class studentAdmin(admin.ModelAdmin):
    list_display_links = ['student_id','student_name']
    # 显示的列表信息
    list_display = \
        ['student_id','student_name','sex','academy','major','student_Class','email','create_time','modify_time']
    # 搜索的字段
    search_fields = ('student_id','student_name','academy','major','student_Class')